﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/Site.Master" AutoEventWireup="true" CodeBehind="MainPage.aspx.cs" Inherits="DelonixRegiaHMSys.UI.WebForms.MainPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style9 {
            color: #FFFFFF;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="wrapper">
        <div id="content">
            <h2>Room Overview</h2> 
            <asp:DataList runat="server" ID="DataListRoom" ShowHeader="false" RepeatDirection="Horizontal" RepeatColumns="10" OnItemDataBound="DataListRoom_DataBinding">
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="lbtn" OnClick="lbtn_Click" CommandArgument='<%# Eval("roomNum") + ";" + Eval("floorLevel") + ";" + Eval("roomType") + ";" + Eval("bedType") + ";" + Eval("smokingOrNot") + ";" + Eval("maxOccupancy") + ";" + Eval("roomStatus") + ";" + Eval("roomRates") + ";" + Eval("guestID") %>'><%# Eval("roomNum") %></asp:LinkButton>
                    <asp:HiddenField runat="server" ID="hfloorLevel" Value='<%# Eval("floorLevel") %>' />
                    <asp:HiddenField runat="server" ID="HhroomType" Value='<%# Eval("roomType") %>' />
                    <asp:HiddenField runat="server" ID="hbedType" Value='<%# Eval("bedType") %>' />
                    <asp:HiddenField runat="server" ID="hsmokingOrNot" Value='<%# Eval("smokingOrNot") %>' />
                    <asp:HiddenField runat="server" ID="hmaxOccupancy" Value='<%# Eval("maxOccupancy") %>' />
                    <asp:HiddenField runat="server" ID="hroomStatus" Value='<%# Eval("roomStatus") %>' />
                    <asp:HiddenField runat="server" ID="hroomRates" Value='<%# Eval("roomRates") %>' />
                    <asp:HiddenField runat="server" ID="hguestID" Value='<%# Eval("guestID") %>' />
                </ItemTemplate>
            </asp:DataList>
        </div>
        <div id="left">
            <h3>Welcome <asp:Label runat="server" ID="lblUserID"></asp:Label></h3>
            <p><asp:LinkButton runat="server" ID="lblRoomReservation" OnClick="lblRoomReservation_Click">Room Reservation</asp:LinkButton></p>
            <p><asp:LinkButton runat="server" ID="lblCheckIn" OnClick="lblCheckIn_Click">CheckIn</asp:LinkButton></p>
            <p><asp:LinkButton runat="server" ID="lblReporting" OnClick="lblReporting_Click">Reports</asp:LinkButton></p>
            <p><asp:LinkButton runat="server" ID="lblSchedule" OnClick="lblSchedule_Click">Assign Housekeeping Schedule</asp:LinkButton></p>
            <p>&nbsp;</p>
            <p><asp:Button ID="Adminbtn" runat="server" Height="35px" Text="Back to Admin page." Width="122px" OnClick="Adminbtn_Click" /></p>
            <p><asp:Button ID="Logoutbtn" runat="server" Height="35px" Text="Log Out." Width="122px" OnClick="Logoutbtn_Click" /></p>

        </div>
        <div class="clear"></div>
    </div>
</asp:Content>
